home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / shareware / Flash_Oyunlar.exe / rocketbike.swf / scripts / DefineButton2_365 / BUTTONCONDACTION on(rollOver).as < prev   
Encoding:
Text File  |  2005-07-13  |  833 b   |  34 lines

  1. on(rollOver){
  2.    if(_name == 0)
  3.    {
  4.       _parent.nextFrame();
  5.       this.onEnterFrame = function()
  6.       {
  7.          if(!_parent.hitTest(_root._xmouse,_root._ymouse,true))
  8.          {
  9.             _parent.chosen = false;
  10.             _parent.prevFrame();
  11.             this.onEnterFrame = null;
  12.          }
  13.       };
  14.    }
  15.    else if(price._currentframe == 1)
  16.    {
  17.       price.gotoAndStop("buy");
  18.    }
  19.    _parent._parent._parent.description.gotoAndStop(_parent._name);
  20.    if(_name != 0)
  21.    {
  22.       _parent._parent._parent.description.item.gotoAndStop(Number(_name) + 1);
  23.       price._visible = true;
  24.       if(_parent[0]._currentframe == _currentframe)
  25.       {
  26.          price.gotoAndStop("used");
  27.       }
  28.       else if(price.price > _root.money)
  29.       {
  30.          price.gotoAndStop("nomoney");
  31.       }
  32.    }
  33. }
  34.